﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hook.Graphics;
using Hook.Graphics.SpriteSheets;
using Microsoft.Xna.Framework;

namespace Hook.Environmental.Props.EnvironmentPieces.ForestPieces
{
    class WoodPlatform : Prop
    {
        public WoodPlatform()
            : base()
        {
            Name = "WoodPlatform.txt";
            Sprite = new Sprite(Game1.EnvironmentSheet, EnvironmentSheet.SSQUARE);

            List<Vector3> VO = new List<Vector3>();

            VO.Add(new Vector3(100, 25, 0));
            VO.Add(new Vector3(-100, 25, 0));
            VO.Add(new Vector3(-100, -25, 0));
            VO.Add(new Vector3(100, -25, 0));

            Frame.SetPoints(VO);

            Mass = float.PositiveInfinity;
            Inertia = float.PositiveInfinity;
            GravityOn = false;

            CollisionLayer.Add(0);
            CollisionLayer.Add(1);
        }

        public WoodPlatform(Vector3 Position, Vector3 Rotation)
            : this()
        {
            SetPosition(Position);
            SetRotation(Rotation);
        }
    }
}
